﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConfiguracionFisica.Dominio
{
    public class Ingreso
    {

        private Barrera barrera;
        private Lector lector;

        public Ingreso(Barrera barrera, Lector lector)
        {
            this.barrera = barrera;
            this.lector = lector;
        }

        public void abrirEntrada()
        {
            this.barrera.abrirBarrera();
        }
        public Lector Lector
        {
            get { return lector; }
            set { lector = value; }
        }
        
        public Barrera Barrera
        {
            get { return barrera; }
            set { barrera = value; }
        }
        
    }
}
